<%@page import="edu.webtek.graven.SessionData"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>    
<%
//Variables
SessionData data = (SessionData)request.getAttribute("sessionData");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
    	<style type="text/css">
    		<%@include file="css/site.css" %>
    	</style>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	    <title> The magic bookstore </title>
	</head>
	<body>
		<div class="container"> 
			<jsp:include page="includes/banner.jsp"></jsp:include>
			<jsp:include page="includes/left.jsp"></jsp:include>
		   	<div class="shopBody">
		   		<% if (!data.isLoggedIn()) { %>
		   		<form action="/Webtek/login" method="post">
		   			<input type="text" 		value="" name="username"/> <br/>
		   			<input type="password" 	value="" name="password"/> <br/>
		   			<input type="submit" 	value="Login"/>
		   		</form>
		   		<% } %>
		   		<%if (data.getMessage().length() != 0) {%>
		   			<p>
		   				<%=data.getMessage() %>
		   			</p>
		   		<%} %>
		   	</div>
	       	<jsp:include page="includes/right.jsp"></jsp:include>
       	</div>
	</body>
</html>